package com.tscnd.core.service.role;

import java.util.List;
import java.util.Set;

import com.tscnd.core.entity.role.Role;
import com.tscnd.core.exception.TSException;


/**
 * 角色接口
 * @author Administrator
 *
 */
public interface IRoleService {
	/**
	 * 查询出所有的角色
	 * @return
	 * @throws Exception
	 */
	public List<Role> getAll()throws TSException;
	
	/**
	 * 根据用户查询所有权限
	 * @param userCode
	 * @return
	 * @throws BJException
	 * @see [类、类#方法、类#成员]
	 */
	public Set<Role> findUserByRole(String username) throws TSException;
}
